.banner {
  width: 20rem;
  background-color: #d8aa9b;
  box-sizing: border-box;
  padding: 1.207729rem /* 25/20.7 */;
  color: white;
  position: relative;
  .scene {
    font-size: 0.676329rem /* 14/20.7 */;
    color: rgba(255, 255, 255, 0.5);
    height: 1.78744rem;
  }
  .name {
    width: 5.458937rem;
    line-height: 1.545894rem;
    font-size: 1.352657rem;
    font-weight: bold;
  }
  .price {
    padding-top: 0.483092rem;
    font-size: 0.676329rem;
    span {
      font-weight: bold;
      font-size: 0.966184rem;
    }
  }
  img {
    position: absolute;
    right: 25px;
    top: 56px;
    width: 4.830918rem;
    height: 4.830918rem;
    background-color: yellow;
    border-radius: 0.483092rem;
  }
  .search_box {
    display: flex;
    align-items: center;
    background-color: #fff;
    width: 18.067633rem;
    height: 1.73913rem;
    box-sizing: border-box;
    padding: 0 0.57971rem;
    border-radius: 0.483092rem;
    margin-top: 0.966184rem;

    .search_icon {
      width: 0.772947rem;
      height: 0.772947rem;
      border-radius: 50%;
      border: #777777 1px solid;
    }
    input {
      height: inherit;
      line-height: 1.545894rem;
      padding: 0 10px;
      font-size: 0.676329rem;
      flex: 1;
    }
    .scan_icon {
      width: 0.869565rem;
      height: 0.869565rem;
      border: #777 1px solid;
      border-radius: 0.193237rem;
    }
  }
}
.content {
  background-color: #fff;
  box-sizing: border-box;
  padding: 1.256039rem 0.966184rem;
  border-top-left-radius: 0.483092rem;
  border-top-right-radius: 0.483092rem;
  transform: translate(0, -0.483092rem);
}
/* tab */
.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  padding: 0 1.256039rem;
  color: #a8a8a8;
  font-size: 0.676329rem;
  li {
    text-align: center;
    padding: 0 0.241546rem;
    &.active {
      color: #333;
      font-size: 0.772947rem;
      font-weight: bold;
    }
  }
}
/* goods */
.goods {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: space-between;
  padding-top: 0.966184rem;
  li {
    width: 8.695652rem;

    .goods_pic {
      width: 8.695652rem;
      height: 4.830918rem;
      position: relative;
      border-radius: 0.483092rem;
      overflow: hidden;

      .goods_views {
        display: flex;
        width: 2.898551rem;
        box-sizing: border-box;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        font-size: 0.57971rem;
        height: 1.15942rem;
        line-height: 1.15942rem;
        padding: 0 0.289855rem;
        border-radius: 0.483092rem 0 0.483092rem 0;
        position: relative;

        &::before {
          content: ' ';
          width: 0.676329rem;
          height: 0.676329rem;
          margin-right: 6px;
          border-radius: 0.096618rem;
          background-color: #fff;
          display: block;
        }
      }

      .goods_type {
        position: absolute;
        right: 0;
        top: 0;
        background-color: #0cb1ff;
        width: 1.932367rem;
        height: 1.062802rem;
        color: #fff;
        text-align: center;
        font-size: 0.57971rem;
        border-radius: 0 0.483092rem 0 0.483092rem;
        line-height: 1.062802rem;
      }

      img {
        background-color: #efefef;
        width: 100%;
        height: auto;
        min-height: 4.830918rem /* 100/20.7 */;
        position: absolute;
        top: 0;
        left: 0;
      }
    }

    .teacher_pic {
      height: 6.666667rem;
      border-radius: 0.483092rem;
      overflow: hidden;
    }
    p {
      font-size: 0.676329rem;
      padding-top: 0.483092rem;
      height: 2.415459rem;
    }
  }
}

/* articles */
.articles {
  display: flex;
  justify-content: center;
  flex-direction: column;
  li {
    box-sizing: border-box;
    padding: 0.724638rem;
    border-radius: 0.483092rem;
    margin-top: 0.483092rem;
    box-shadow: 0 0.096618rem 0.289855rem 0 rgba(204, 204, 204, 60);

    .article_title {
      color: #333;
      font-size: 0.772947rem;
      font-weight: bold;
    }
    .article_info {
      display: flex;
      padding-top: .483092rem;
      .article_info_body {
        padding-right: 0.724638rem;
        p {
          height: 2.125604rem;
          color: #333;
          font-size: 0.676329rem;
          line-height: 1.5;
          -webkit-line-clamp: 2;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        span {
          display: block;
          padding-top: .566184rem;
          color: #666;
          font-size: 12px;
        }
      }
      .article_pic {
        width: 4.589372rem;
        height: 3.768116rem;
        border-radius: .483092rem;
        overflow: hidden;
        background-color: #F7F7F7;
        flex-shrink: 0;
        img {
          width: auto;
          height: inherit;
        }
      }
    }
  }
}
